package com.gkjsj.exam1;
import org.springframework.context.ApplicationContext;
import 
    org.springframework.context.support.ClassPathXmlApplicationContext;
public class TestDemo {
	public static void main(String[] args) {
		
		String xmlPath = "com/gkjsj/exam1/beans.xml";
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlPath); 
		
		System.out.println("teacher1 " + applicationContext.getBean("teacher1"));
		System.out.println("teacher2 " + applicationContext.getBean("teacher2"));
		
	}
}
